home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 37 - Games 3 (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 37 - Games 3 (19xx)(Topik Public Domain)(PD)[WB].adf / Pz15 / ReadMe.Pz15 < prev    next >
Text File  |  1991-02-24  |  1KB  |  37 lines

  1.  
  2. Pz15 - the "15" puzzle
  3.  
  4.     Do you remember those cheap plastic puzzles with 15 white tiles 
  5.     numbered 1 through 15 and an empty square in a 4 by 4 arrangement?
  6.     You know, at the check out racks in K-Mart or the local grocery?
  7.     The ones that you'd pry up a tile in the center, and then rearrange
  8.     them all to make it look like you solved it?  Just to get your
  9.     sister mad?  Well, here it is again!
  10.  
  11.     To move the tiles around, just click on the tile that you want to
  12.     move (pretend the mouse pointer is your finger - except you don't
  13.     have to actually slide anything around).  You can even click at
  14.     the end of a row or column of tiles and move all three over to 
  15.     fill in the empty square.
  16.  
  17.     To quit the game, use the close gadget, or send it a ^C (from the
  18.     parent CLI window, or with the 'break' command).
  19.  
  20.     It's not a smart puzzle - it doesn't detect when you're done
  21.     (besides, there's different ways of solving it).
  22.  
  23.     For those adventurous folks, some enhancements might include
  24.     a gadget to reshuffle the tiles, or animate the tiles sliding
  25.     around, or allow the puzzle to be resized.
  26.  
  27.     The source for it is in "pz.c", and the tile images are in "imgs.c".
  28.     The source is pretty grody looking in places - lots of "unsigned
  29.     shorts".  I'd love to hear of more tricks to get it even smaller yet.
  30.     It was just 4088 bytes with Lattice 4.0, now with 5.0 its 2808 bytes!
  31.  
  32.     Have fun!
  33.  
  34. Mike Hall    2 S 461 Cherice Dr.    Warrenville, IL     60555
  35. 312-393-6350    att!cuuxb!migh
  36.  
  37.